<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
</head>
<body>
    <!-- v-text 对文本进行渲染 相当于innerText -->
    <!-- v-html 能够识别标签，想当于innerHtml -->
    <div id="app">
        <!-- <p v-text="msg"></p> -->
    <p v-html="msg"></p>
</div>
    <script>
        // 创造vue文件
        let vm= new Vue({
            el:"p",//获取dom元素
            data:{
                // 初始化数据
                msg:"  <h1>hello world</h1>"
            }
        })
    </script>
</body>
</html>